package org.lq.ssm.dto.util;

import org.lq.ssm.mapper.DeptPOMapper;
import org.lq.ssm.mapper.JobPOMapper;
import org.lq.ssm.po.DeptPO;
import org.lq.ssm.po.JobPO;
import org.mapstruct.Named;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Named("userDTOUtil")
public class UserDTOUtil {

    @Named("longTOBoolean")
    public Boolean longTOBoolean(long enabled){
        if(enabled==1)return true;
        else if (enabled==0) return false;
        else return false;
    }
}
